package com.example.project_01.utils;

import org.springframework.util.DigestUtils;


/**
 * ClassName: MD5Password
 * Package: com.example.project_01.utils
 * Description:
 *
 * @Author ShiYi
 * @Create 2025/10/13 11:35
 * @Version 1.0
 */
public class MD5Password {
    public static String md5Password(String password, String salt) {
        String md5Pwd = password + salt;
        md5Pwd = DigestUtils.md5DigestAsHex(md5Pwd.getBytes());
        System.out.println(md5Pwd);
        return md5Pwd;
    }
}
